#encoding: utf-8
class Receita < ActiveRecord::Base
  # attr_accessible :title, :body
  attr_accessible :prato_id, :conteudo

  	validates_presence_of :conteudo, message: " - deve ser preenchido"
	validates_uniqueness_of :conteudo, message:" - conteúdo já existe"  

	belongs_to :prato

	validates_presence_of :prato_id
    validates_associated :prato
end
